// This is a test class for the Books class

import org.example.Service.BookService;
import org.example.config.SpringConfig;
import org.example.pojo.Books;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.sql.SQLOutput;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {SpringConfig.class})
public class BooksTest1 {
    // This class does not contain any code
    @Autowired
    private BookService booksService;

    @Test
    public void testSelectOneBook() {
        Books book = booksService.selectOneBook(1);
        System.out.println(book);
    }
}
